//package spitter.controller;
//
//import org.springframework.web.bind.annotation.ControllerAdvice;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//import spitter.exceptions.DuplicateSpittleException;
//import spitter.exceptions.SpitterNotFoundException;
//
//@ControllerAdvice
//public class AppWideExceptionHandler {
//    @ExceptionHandler(DuplicateSpittleException.class)
//    public String duplicateSpittleHandler(){
//        return "error/duplicate";
//    }
//    @ExceptionHandler(SpitterNotFoundException.class)
//    public String spitterNotFound(){
//        return "error/notfound";
//    }
//}
